#!/bin/bash

cd /home/yizimi/paracomp/sysy
# cmake -S . -B build
cmake --build build > run.log 2>&1

for file in ./test/exp1/*.sy
do 
    echo "testing for" $file >> run.log 2>&1
    ./build/bin/sysyc $file > $file.res 2>&1
done
echo finished >> run.log 2>&1